package org.aeon.newsmanagersystem.dao;

import org.aeon.newsmanagersystem.pojo.Topic;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Mybatis Generator on 2024/03/27
 */
@Mapper
public interface TopicMapper {
    int deleteByPrimaryKey(Integer tid);

    int insert(Topic record);

    int insertSelective(Topic record);

    Topic selectByPrimaryKey(Integer tid);

    int updateByPrimaryKeySelective(Topic record);

    int updateByPrimaryKey(Topic record);

    List<Topic> all();

    int add(@Param("topic") Topic topic);

    int count(@Param("topicName") String topicName);

    int countExclusion(@Param("topicName") String topicName, @Param("eliminate") Topic exclusion);

}
